package com.meirengu.webview.service.impl;

import com.meirengu.webview.dao.LegalAdviceUserDao;
import com.meirengu.webview.model.LegalAdviceUser;
import com.meirengu.webview.service.LegalAdviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LegalAdviceServiceImpl implements LegalAdviceService {

    @Autowired
    private LegalAdviceUserDao legalAdviceUserDao;

    @Override
    public int register(String phoneNumber) {
        LegalAdviceUser legalAdviceUser = new LegalAdviceUser();
        legalAdviceUser.setPhoneNumber(phoneNumber);
        return legalAdviceUserDao.insert(legalAdviceUser);
    }

}
